package main

import (
	"fmt"
	"time"
	"demo2/mydelay"
)



func main() {
	var tcnt1, tcnt2 uint32
	for true {
		if(mydelay.App_pend_wake(tcnt1)){
			mydelay.App_sleep(&tcnt1, 200);
			fmt.Println("run1")
		}
		if(mydelay.App_pend_wake(tcnt2)){
			mydelay.App_sleep(&tcnt2, 1000);
			fmt.Println("run2")
		}
		
		time.Sleep(10*time.Millisecond)
	}
	

	
}
